<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:t="http://myfaces.apache.org/tomahawk">

<ui:composition>
	<h:head>
		<meta http-equiv="Content-Type"
			content="text/html; charset=ISO-8859-1" />
		<link type="text/css" rel="stylesheet" href="css/myform.css" />
		<title>Rede de Imóveis</title>
	</h:head>

	<f:view>
		<f:loadBundle basename="br.com.imob.properties.messages" var="labels" />

		<h:form id="FormPrincipal">
			<rich:panel id="panelDadosImovel">
				<f:facet name="header">
					<h:outputText value="Dados do Imóvel:" />
				</f:facet>
				<h:panelGrid id="gridDadosImovel" columns="4">
					<h:outputText value="#{labels.valor}: "></h:outputText>
					<h:inputText id="valor" value="#{imovelBO.imovel.valor}"></h:inputText>

					<h:outputText value="#{labels.iptu}: "></h:outputText>
					<h:inputText id="iptu" value="#{imovelBO.imovel.iptu}"></h:inputText>

					<h:outputText value="#{labels.titulo}: "></h:outputText>
					<h:inputText id="titulo" value="#{imovelBO.imovel.titulo}"></h:inputText>

					<h:outputText value="#{labels.tipoImovel}: "></h:outputText>
					<h:selectOneMenu id="tipoImovel" value="#{imovelBO.tipoImovel}">
						<f:selectItem itemLabel="Selecione um Item" itemValue="" />
						<t:selectItems value="#{imovelBO.tiposImovel}" var="item"
							itemLabel="#{item.tipoImovel}" itemValue="#{item}" />
					</h:selectOneMenu>

					<h:outputText value="#{labels.finalidade}: "></h:outputText>
					<h:inputText id="finalidade"
						value="#{imovelBO.finalidade.finalidade}"></h:inputText>

					<h:outputText value="#{labels.categoria}: "></h:outputText>
					<h:selectOneMenu id="categoria"
						value="#{imovelBO.finalidade.categoria}">
						<f:selectItem itemLabel="Selecione um Item" itemValue="" />
						<t:selectItems value="#{imovelBO.categorias}" var="item"
							itemLabel="#{item.categoria}" itemValue="#{item}" />
					</h:selectOneMenu>

					<h:outputText value="#{labels.classificacao}: "></h:outputText>
					<h:selectOneMenu id="classificacao"
						value="#{imovelBO.classificacao}">
						<f:selectItem itemLabel="Selecione um Item" itemValue="" />
						<t:selectItems value="#{imovelBO.classificacoes}" var="item"
							itemLabel="#{item.classificacao}" itemValue="#{item}" />
					</h:selectOneMenu>

				</h:panelGrid>
			</rich:panel>
			<h:commandButton action="#{imovelBO.incluir}"
				value="#{labels.incluir}"></h:commandButton>
		</h:form>
	</f:view>
</ui:composition>
</html>